cmake_minimum_required(VERSION 2.6)
project(SIMPLE_SERIALIZER)

include_directories(.)
link_directories(.)

#SET(CMAKE_BUILD_TYPE DEBUG)
SET(CMAKE_BUILD_TYPE CMAKE_CXX_FLAGS_RELEASE)
#SET(CMAKE_BUILD_TYPE CMAKE_C_FLAGS_RELEASE)

add_library(sise SHARED sise.c sise_packer.c)
#add_library(sise sise.c sise_packer.c)

add_executable(struct-mem-layout struct-mem-layout.c)

add_executable(test_bin_attaker test_bin_attaker.c)
target_link_libraries(test_bin_attaker sise)

add_executable(test_bin_tx test_bin_tx.c)
target_link_libraries(test_bin_tx sise)

add_executable(test_bin_vars test_bin_vars.c)
target_link_libraries(test_bin_vars sise)

add_executable(test_hexbin test_hexbin.c)
target_link_libraries(test_hexbin sise)

add_executable(test_hexchar test_hexchar.c)
target_link_libraries(test_hexchar sise)
